package com.suixun.util;

/**
 * 日志消息接口类型
 *
 * @author <a href="mailto:hellmash@gmail.com">hellmash</a>
 * @version create on 2015-06-12 11:53
 */
public enum Message {

    user_pwd_error(1002,"用户名或密码错误"),
    user_areamark_error(1003,"改帐号不可在该区域登录"),
    user_checkcode_busy(1004,"验证码获取频繁"),
    user_checkcode_error(1005,"手机验证码错误"),
    user_eqtel_error(1007,"此手机号已被注册"),
    user_telqq_exist(1009,"该用户已存在手机号和QQ号"),
    user_pwd_null(1011,"密码不能为空"),
    user_tel_unregist(1012,"该手机号未注册"),
    user_loginname_exist(1013,"用户名或手机号不存在"),
    user_reccode_nouser(1014,"无效的推荐号"),
    user_tel_mistake(1015,"手机号不存在"),
    user_checkcode_overtime(1016,"验证码已失效"),
    user_checkcode_mistake(1017,"验证码输入错误"),
    user_usercard_error(1018,"身份证号码输入错误"),
    user_no_auth(1019,"用户未认证"),
    user_checkcode_sended(1020,"手机验证码发送成功"),
    user_reg_success(1020,"美眉分期注册成功"),
    user_info_auth(2001,"资料未审核成功，不可执行该操作"),
    user_stat_local(2003,"用户为黑名单用户"),
    user_money_repay(2004,"用户未还款"),
    user_info_idcard(2005,"该身份证已被使用"),
    user_info_idcard_error(2006,"银行卡开户人姓名必须和身份证相同"),
    user_usercard_exist(2007,"用户身份证已存在"),
    user_authupdate_fail(3001,"该状态下资料不可修改"),
    user_authstat_unmodify(3002,"不可变更状态"),
    user_authstat_quilky(3003,"审核后7个工作日内不可再次提交信息"),
    order_add_more(4001,"当前至少有一笔订单正在审核"),
    order_firstpay_error(4002,"首付比例不正确"),
    order_monthday_error(4003,"分期不合法"),
    order_cancel_lock(4004,"订单已锁定不可取消"),
    order_loan_limit(4005,"贷款金额超过信用额度"),
    order_sell_over(4006,"不好意思，商品已全部抢完"),
    mfq_time_over(4007,"此商品的秒分期已过时"),
    mfq_order_already(4008,"此用户已经对该分期下过单"),
    order_close_notmy(4010,"对不起，您不可关闭不属于您的订单"),
    item_areamark_fail(5001,"不能购买非本区域的商品"),
    repay_record_dealed(6001,"该还款记录已还款或正在还款"),
    repay_record_unprev(6002,"不满足提前还款的条件"),
    repay_record_month(6003,"不能提前支付"),
    delay_state_error(6004,"已还款或已逾期，不可申请延期"),
    delay_day_long(6005,"每期账单不得超过下一期的账单还款日"),
    delay_apply_done(6006,"已申请延期"),
    repay_firstpay_done(6007,"首付已付"),
    repay_firstpay_zero(6008,"无首付"),
    repay_firstpay_not(6009,"不是首付，不能申请退款"),
    repay_dealstat_not(6010,"处理中，不能申请退款"),
    delay_paytime_long(6011,"不可在还款日之后进行延期申请"),
    delay_record_month(6012,"不能对当期以外的还款进行延期申请"),
    repay_firstpay_auth(6013,"未进行认证，不可支付首付款"),
    repay_create_error(6014,"订单不是还款期，创建账单失败！"),
    repay_create_repeat(6015,"该订单已经创建账单，无法重复创建！"),
    gdorder_create_error(7001,"代付订单创建失败"),
    gdorder_deal_error(7002,"代付订单处理失败"),
    gdorder_loan_limit(7003,"您的信用额度不够"),
    gdorder_deal_repay(7004,"通知创建账单失败");

    private int code;
    private String msg;
    private boolean loged;

    private Message(int code, String msg){
        this.code = code;
        this.msg = msg;
        loged = true;
    }

    private Message(int code, String msg, boolean loged){
        this.code = code;
        this.msg = msg;
        this.loged = loged;
    }

    public int getCode() {
        return code;
    }
    public String getMsg() {
        return msg;
    }
    public boolean isLoged() {
        return loged;
    }

}
